﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Grain.Crm.Common
{
    public class Helper
    {
        public static string AssemblyDirectory 
        {
            get
            {
                if(string.IsNullOrEmpty(_assemblyDirectory))
                {
                    var ass = Assembly.GetEntryAssembly();
                    _assemblyDirectory = Path.GetDirectoryName(ass.Location);
                }
                return _assemblyDirectory;
            }
        }
        private static string _assemblyDirectory { get; set; }
    }
}
